package com.itheima.info.manage.sysytem.entry;

import com.itheima.info.manage.sysytem.controller.StudentController;
import com.itheima.info.manage.sysytem.controller.TeacherController;

import java.util.Scanner;

public class SystemEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("请输入您的选择:1:学生管理;2:教师管理;3:退出");
            String choice = sc.next();
            switch (choice) {
                case "1":
                    StudentController studentController = new StudentController();
                    studentController.start();
                    break;
                case "2":
                    TeacherController teacherController=new TeacherController();
                    teacherController.start();
                    break;
                case "3":
                    System.out.println("退出");
                    return;
            }
        }
    }
}
